﻿using com.guojin.core.io.message;
using com.guojin.core.io;
using System.Collections.Generic;

namespace com.guojin.mj.net.message.login
{
    public class HistoryListRet : Message
    {
        public static int TYPE = 7;
        public static int ID = 132;
        public int Jv,Score,ZhuangNumber;
        public List<HistoryRoom> historyRooms;
        public void decode(core.io.Input _in)
        {
            Jv = _in.readInt();
            Score = _in.readInt();
            ZhuangNumber = _in.readInt();
            int num   = _in.readInt();
            if (num>0)
            {
                historyRooms = new List<HistoryRoom>();
                for (int i = 0; i < num; i++)
                {
                    HistoryRoom hr = new HistoryRoom();
                    hr.decode(_in);
                    historyRooms.Add(hr);
                }
            }
        }

        public void encode(Output _out)
        {

        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "Jv"+ Jv;
        }
    }
}